{__NOLAYOUT__}<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=__CHARSET__">
<style>
.page_wrap .pagerbar {
	font-size:12px;
}
.pagerbar a,.pagerbar span{ 
	display:inline-block;line-height:13px;padding:6px 10px !important;border:1px solid;border-color:#c9c9c9 #bdbdbd #b0b0b0 #bdbdbd;background-color:#f8f8f8;text-decoration:none;color:#666666;margin-right:3px;border-radius:3px;vertical-align:top;*font-family:Simsun;
}
.pagerbar a:hover{ color:#fff;background:#488fcf !important;border-color:#2470b5 #488fcf #488fcf #488fcf;text-decoration:none; }
.pagerbar span,.pagerbar a.current{ color:#fff !important;background:#488fcf !important;border-color:#2470b5 #488fcf #488fcf #488fcf; font-style:normal; }
.pagerbar span{ padding:0 10px; }
</style>
</head>
<body>
<br>

{$rs sql="select * from #@table1 where id<=1000000 order by id asc" pagesize="10" pagemark="p" offset="0" rows="0" conn="newConn"}
	{$rs("id")} - {$rs("aaaa")} - {$rs("bbbb")} - {$rs("cccc")} <br>
{/$rs}
{@empty for='rs'}暂无记录！{/@empty}

{@pager data='rs'}

<div id="wrapbox">
<br />===========
<br /><strong>第{$pager("begin")}条 - 第{$pager("end")}条</strong>
<br />当前：<a href="{:u('test?p='& pager('no') )}">第{$pager("no")}页</a>
<br />
<a href="{:u('test?p='& pager('first') )}">首页</a>  
<a href="{:u('test?p='& pager('prev') )}">上一页</a>  
<a href="{:u('test?p='& pager('next') )}">下一页</a>
<a href="{:u('test?p='& pager('last') )}">末页</a>
<br />===========
<br />共{$pager("total")}条数据 当前: 第{$pager("no")}页/共{$pager("count")}页 每页显示:{$pager("size")}条
<br /><br />
<div class='page_wrap'>
{$pager("bar")}
</div>
<br />==========
<br />
</div>
{/@pager}

</body>
</html>